<?php

use App\Http\Controllers\PolicyServiceController;
use Illuminate\Support\Facades\Route;

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

Route::get('/', 'IndexController@index');


Route::get('policy/file', 'PolicyServiceController@index_file')->name('policy.file');
Route::get('policy/interpretation', 'PolicyServiceController@index_interpretation')->name('policy.interpretation');
Route::get('policy/file/{file}', 'PolicyServiceController@show_file')->name('policy.file.show');
Route::get('policy/interpretation/{interpretation}', 'PolicyServiceController@show_jiedu')->name('policy.interpretation.show');
Route::resource('policy', 'PolicyServiceController');

Route::get('financial/guide', 'FinancialServicesController@guide')->name('financial.guide');
Route::get('financial/guide/{guide}', 'FinancialServicesController@show_guide')->name('financial.guide.show');
Route::resource('financial', 'FinancialServicesController');

Route::get('legal/lawyer', 'LegalServicesController@lawyer')->name('legal.lawyer');

Route::resource('legal', 'LegalServicesController');

Route::get('apply', 'HubController@apply_show')->name('hub.applay');
Route::post('apply', 'HubController@apply')->name('hub.applay.post');
Route::get('incubated', 'HubController@index_rf')->name('hub.rf');
Route::resource('hub', 'HubController');

Route::get('training/online', 'TrainingServicesController@index_online')->name('training.online');
Route::resource('training', 'TrainingServicesController');
